This forum is closed to new posts and
responses. Individual names altered for privacy purposes. The information contained in this website is provided for informational purposes only and should not be construed as a forum for customer support requests. Any customer support requests should be directed to the official HCL customer support channels below:
Linux Startup Script ~Dexter Fezhipisonflar 27.Dec.02 05:35 PM a Web browser Domino Server 6.0Linux - RedHat
Domino Service Script for Linux
1. Use VI to create your script:
vi /etc/init.d/domino
2. Add the following lines:
#!/bin/sh
#
# Start/stop the Lotus Domino server
#
# description: This script is used to start and stop the domino
# server as a background process. It will send
# the serverID password from a file to the server.
# Communication with the server may be done with a screen -r -D Domino when logged in as user 'notes'
#
# Usage: service domino start|stop
#
# process name: server, ...
#
# See how we were called.
case $1 in
start)
echo -n "Starting Domino server..."
su - notes -c "screen -d -m -S Domino /home/notes/startnotes"
4. Create another file in the notes home directory... I'm assuming you created the user 'notes' for the domino service.
vi /home/notes/startnotes
5. Add the following 2 lines and save
cd /local/notesdata
/opt/lotus/bin/server
6. make your scripts executable
chmod 755 /etc/init.d/domino
chmod 755 /home/notes/startnotes
7. Type 'service domino start'
8. Using webmin, or linuxconf you can optionally have domino started at bootup.
a. Webmin: click 'System' then 'Bootup/shutdown'. Find the Domino task and change its status to 'Start at boot'.
b. linuxconf: click 'Service Control' and scroll to the Domino service -- change startup to 'Automatic'
Notes:
* You need to have the screen RPM installed
* Scripts must be created by using 'root' user
* Direct server access is possible from ANY terminal!!
* access by logging in as user 'notes' and issue the following command:
screen -r -S Domino
* exit screen by typing CTL A - then Z